package org.example.config;

import org.example.feign.UserFeign;
import org.example.service.impl.UserServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
public class SpringConfig {
 
	@Bean
	public UserServiceImpl userServiceImpl() {
		return new UserServiceImpl();
	}

	@Bean
	public UserFeign userFeign() {
		return new UserFeign() {
			@Override
			public List<String> findAll(String num) {
				return null;
			}
		};
	}


}